﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001165 RID: 4453
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetHeadIconCsReq : IMessage<SetHeadIconCsReq>, IMessage, IEquatable<SetHeadIconCsReq>, IDeepCloneable<SetHeadIconCsReq>, IBufferMessage
	{
		// Token: 0x1700385B RID: 14427
		// (get) Token: 0x0600C74D RID: 51021 RVA: 0x00219AD4 File Offset: 0x00217CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetHeadIconCsReq> Parser
		{
			get
			{
				return SetHeadIconCsReq._parser;
			}
		}

		// Token: 0x1700385C RID: 14428
		// (get) Token: 0x0600C74E RID: 51022 RVA: 0x00219ADB File Offset: 0x00217CDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetHeadIconCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700385D RID: 14429
		// (get) Token: 0x0600C74F RID: 51023 RVA: 0x00219AED File Offset: 0x00217CED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetHeadIconCsReq.Descriptor;
			}
		}

		// Token: 0x0600C750 RID: 51024 RVA: 0x00219AF4 File Offset: 0x00217CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconCsReq()
		{
		}

		// Token: 0x0600C751 RID: 51025 RVA: 0x00219AFC File Offset: 0x00217CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconCsReq(SetHeadIconCsReq other) : this()
		{
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C752 RID: 51026 RVA: 0x00219B21 File Offset: 0x00217D21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetHeadIconCsReq Clone()
		{
			return new SetHeadIconCsReq(this);
		}

		// Token: 0x1700385E RID: 14430
		// (get) Token: 0x0600C753 RID: 51027 RVA: 0x00219B29 File Offset: 0x00217D29
		// (set) Token: 0x0600C754 RID: 51028 RVA: 0x00219B31 File Offset: 0x00217D31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x0600C755 RID: 51029 RVA: 0x00219B3A File Offset: 0x00217D3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetHeadIconCsReq);
		}

		// Token: 0x0600C756 RID: 51030 RVA: 0x00219B48 File Offset: 0x00217D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetHeadIconCsReq other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C757 RID: 51031 RVA: 0x00219B78 File Offset: 0x00217D78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C758 RID: 51032 RVA: 0x00219BB7 File Offset: 0x00217DB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C759 RID: 51033 RVA: 0x00219BBF File Offset: 0x00217DBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C75A RID: 51034 RVA: 0x00219BC8 File Offset: 0x00217DC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C75B RID: 51035 RVA: 0x00219BFC File Offset: 0x00217DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C75C RID: 51036 RVA: 0x00219C3A File Offset: 0x00217E3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetHeadIconCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C75D RID: 51037 RVA: 0x00219C6B File Offset: 0x00217E6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C75E RID: 51038 RVA: 0x00219C74 File Offset: 0x00217E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005020 RID: 20512
		private static readonly MessageParser<SetHeadIconCsReq> _parser = new MessageParser<SetHeadIconCsReq>(() => new SetHeadIconCsReq());

		// Token: 0x04005021 RID: 20513
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005022 RID: 20514
		public const int IdFieldNumber = 7;

		// Token: 0x04005023 RID: 20515
		private uint id_;
	}
}
